﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinFormsAppTest.pojo
{
    internal class Outtime
    {
        private int outid;
        private DateTime begintime;
        private DateTime endtime;
        private string place;
        private int workid;
        private int userid;

        public int Outid { get => outid; set => outid = value; }
        public DateTime Begintime { get => begintime; set => begintime = value; }
        public DateTime Endtime { get => endtime; set => endtime = value; }
        public string Place { get => place; set => place = value; }
        public int Workid { get => workid; set => workid = value; }
        public int Userid { get => userid; set => userid = value; }

        public Outtime(int outid, DateTime begintime, DateTime endtime, string place, int workid, int userid)
        {
            this.outid = outid;
            this.begintime = begintime;
            this.endtime = endtime;
            this.place = place ?? throw new ArgumentNullException(nameof(place));
            this.workid = workid;
            this.userid = userid;
        }

        public Outtime()
        {
        }
    }
}
